package com.appspot.didit.client.user;

import com.google.gwt.event.shared.GwtEvent;

public class LoginSuccessEvent extends GwtEvent<LoginSuccessHandler> {

    private static Type<LoginSuccessHandler> TYPE;

    public static Type<LoginSuccessHandler> getType() {
            return TYPE != null ? TYPE
                            : (TYPE = new Type<LoginSuccessHandler>());
    }

    public LoginSuccessEvent() {
    }

    @Override
    public final Type<LoginSuccessHandler> getAssociatedType() {
            return getType();
    }

    @Override
    protected void dispatch(LoginSuccessHandler handler) {
            handler.onLoginSuccess(this);
    }

}